<template>
    <div>
        <ul class="mui-table-view">
				<li class="mui-table-view-cell mui-media" v-for="(item,index) in newsList" :key="index">
					<a href="javascript:;">
						<img class="mui-media-object mui-pull-left" :src="item.img_url">
						<div class="mui-media-body">
							{{item.title}}
                            <p>
                            <span>{{item.add_time | filTime}}</span>
                            <span>点击{{item.click}}次</span>
                            </p>
							
						</div>
					</a>
				</li>
			</ul>
    </div>
</template>
<script>
import { getNewsList } from "@/api";

export default {
  data() {
    return {
      newsList: []
    };
  },
  created() {
    getNewsList().then(res => {
      console.log(res);
      this.newsList = res.message;
    });
  },
  filter:{
      filTime(time){
          
      }
  }
};
</script>

